package dfbz.com.utils;

import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.nio.charset.StandardCharsets;

public class TranslateUtil {

    public static String translateStr(String str) throws UnsupportedEncodingException {
        String  decode = URLDecoder.decode(str, "UTF-8");
        byte[] bytes = decode.getBytes(StandardCharsets.ISO_8859_1);
        return  new String(bytes, StandardCharsets.UTF_8);
    }
}
